package com.cz.video.common.utils;

import cn.hutool.core.io.resource.ResourceUtil;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@AllArgsConstructor
public class LuaFileReader {

    public static String readLuaFile(String fileName) {
        return ResourceUtil.readUtf8Str("lua/" + fileName + ".lua");
    }
}
